Skip to content

Fix RxResult performance issue in Browser #1023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Nov 25, 2022

setImmediate was slowing down the result consumption since it postpone the execution to the next cycle. Since the cycle in Browser is longer, the issue was more perceptive there.

The remove of setImmediate doesn't cause any issue with the back-pressure mechanics.

`setImmediate` was slowing down the result consumption since it postpone the execution to the next cycle.
Since the cycle in Browser is longer, the issue was more perceptive there.

The remove of `setImmediate` doesn't cause any issue with the back-pressure machanics.
@bigmontz bigmontz linked an issue Nov 25, 2022 that may be closed by this pull request
Copy link

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me, might want someone with more JavaScript experience to look as well.

@bigmontz bigmontz merged commit dcb0ffd into neo4j:5.0 Nov 25, 2022
@bigmontz bigmontz deleted the 5.x-improve-performance-rx branch November 25, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lost performance with neo4j-driver 5.2.0 on the browser
3 participants